package com.heakey.common.constant;

/**
 * @Description 缓存key
 * @Author Bing
 * @Date 2024/10/10 14:36
 */
public interface CacheKey {
    // 防重复提交key
    String SPEED_LIMIT = "SPEEDLIMIT:%s:%s";
    // 15秒
    String CACHEMANAGER_FIFTEEN_SECOND = "fifteenSecond";
    // 30秒
    String CACHEMANAGER_THIRTY_SECOND = "thirtySecond";
    // 一分钟
    String CACHEMANAGER_ONE_MINUTE = "oneMinute";
    // 三分钟
    String CACHEMANAGER_THREE_MINUTE = "threeMinute";
    // 五分钟
    String CACHEMANAGER_FIVE_MINUTE = "fiveMinute";
    // 十分钟
    String CACHEMANAGER_TEN_MINUTE = "tenMinute";
    // 三十分钟
    String CACHEMANAGER_THIRTY_MINUTE = "thirtyMinute";
    // token
    String TOKEN_KEY = "TOKEN:%s";
    // lock 前缀
    String LOCK_PREFIX = "LOCK:";
    // 登录LOCK
    String LOCK_LOGIN = LOCK_PREFIX + "LOGIN:%s";
    // 上传文件LOCK
    String LOCK_UPLOAD_FILE = LOCK_PREFIX + "UPLOAD_FILE:%s";
    // 文件上传次数限制
    String FILE_UPLOAD_COUNT_LIMIT = "FILE:UPLOAD:COUNT:%s";
    // 解析手机号LOCK
    String LOCK_PARSE_PHONE = LOCK_PREFIX + "PARSE_PHONE:%s";
}